package com.cx.mapper;

import com.cx.pojo.GoodCollection;
import com.cx.pojo.GoodCollectionExample;
import com.cx.vo.GoodCollectVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodCollectionMapper {
    int countByExample(GoodCollectionExample example);

    int deleteByExample(GoodCollectionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GoodCollection record);

    int insertSelective(GoodCollection record);

    List<GoodCollection> selectByExample(GoodCollectionExample example);

    GoodCollection selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GoodCollection record, @Param("example") GoodCollectionExample example);

    int updateByExample(@Param("record") GoodCollection record, @Param("example") GoodCollectionExample example);

    int updateByPrimaryKeySelective(GoodCollection record);

    int updateByPrimaryKey(GoodCollection record);

    List<GoodCollectVO> selectFromGoods(Integer userId);

    int insertCollection(Integer userId,Integer goodId);

    int deleteByGoodId(Integer goodId);

    List<GoodCollectVO> selectByGoodName(Integer userId,String goodName);
}